<script setup type="module">

import {reactive, ref} from "vue";

let num = ref(0)
let incr = () => {
  num.value++
}
let decr = () => {
  num.value--
}
</script>
<template>
  <div>
    <input type="button" value="+" @click="incr">
    {{ num }}
    <input type="button" value="-" @click="decr">
  </div>
</template>
<style scoped>

</style>